FROM openjdk:11-jdk

MAINTAINER Lusifer

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /screw/screw-admin

WORKDIR /screw/screw-admin

ADD ./screw-admin.jar ./

ENTRYPOINT ["java", "-Xms512m", "-Xmx1024m", "-Djava.security.egd=file:/dev/./urandom", "-jar", "screw-admin.jar"]

EXPOSE 4000